package com.ruoyi.asset.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 文件基础对象 back_files
 *
 * @author hghi
 * @date 2022-07-31
 */
public class BackFiles extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 文件ID
     */
    private Long fileId;

    /**
     * 文件名称
     */
    @Excel(name = "文件名称")
    private String fileName;

    /**
     * 文件大小
     */
    @Excel(name = "文件大小")
    private Long fileSize;

    /**
     * 文件绝对路径
     */
    @Excel(name = "文件绝对路径")
    private String filePath;

    /**
     * 添加人
     */
    @Excel(name = "添加人")
    private Long op;

    /**
     * 添加时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date opDate;

    /**
     * 企业ID(0 默认管理员)
     */
    @Excel(name = "企业ID(0 默认管理员)")
    private Long enterpriseId;

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    public Long getFileId() {
        return fileId;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setOp(Long op) {
        this.op = op;
    }

    public Long getOp() {
        return op;
    }

    public void setOpDate(Date opDate) {
        this.opDate = opDate;
    }

    public Date getOpDate() {
        return opDate;
    }

    public void setEnterpriseId(Long enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public Long getEnterpriseId() {
        return enterpriseId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("fileId", getFileId())
                .append("fileName", getFileName())
                .append("fileSize", getFileSize())
                .append("filePath", getFilePath())
                .append("remark", getRemark())
                .append("op", getOp())
                .append("opDate", getOpDate())
                .append("enterpriseId", getEnterpriseId())
                .toString();
    }
}
